<!doctype html>
<html lang="en">
    <head>
        <title>Rust Playground</title>
        <meta charset="utf-8"/>
        <!-- Bear in mind with the figure 720 that when the stable channel is added the toolbar will be full, and so any additions beyond that will necessitate change here or there. -->
        <meta name=viewport id=meta-viewport content="width=720">
        <script>if (screen.width > 720) { document.getElementById("meta-viewport").setAttribute('content', 'width=device-width'); }</script>
        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700"/>
        <!-- web.css and web.js need cache busting; increment the numbers when you make changes -->
        <link rel="stylesheet" href="web.css?5">
        <link rel="shortcut icon" href="https://doc.rust-lang.org/favicon.ico"/>
        <script src="https://cdn.jsdelivr.net/ace/1.2.6/min/ace.js"
                integrity="sha512-Y/M43OHLyvSuqF2JuQU9RIerW7fH7i/h/7AokQPIXhoYiHIxKXYDCWcuyRSXiVCGGtnfYoIBklTZ4/t26Lrr/A=="
                crossorigin="anonymous"
                charset="utf-8"></script>
        <script src="https://cdn.jsdelivr.net/ace/1.2.6/min/ext-themelist.js"
                integrity="sha512-ZdrBduTZxDAOqGKxKVuFtIVU0wD82q0HXnUEj8/KBHZ9DbQuuAjfMZ7yyBnh3vzkOtMQex9jj8EuypRD+KGNSA=="
                crossorigin="anonymous"
                charset="utf-8"></script>
        <script src="web.js?13"></script>
    </head>
    <body>
        <form id="control">
            <div
                ><button type=button class=primary id=evaluate title="Execute your code (you can also press Ctrl+Enter when editing code)">Run</button
                ><button type=button id=asm title="Compile to ASM">ASM</button
                ><button type=button id=llvm-ir title="Compile to LLVM IR">LLVM IR</button
                ><button type=button id=mir title="Print compiler-internal MIR of the crate

Note that MIR is an unstable implementation detail that's subject to change">MIR</button
            ></div
            ><wbr><div
                ><button type=button id=format title="Automatically visually reformat your code">Format</button
            ></div
            ><wbr><div
                ><button type=button id=share title="Share a link to your code via is.gd">Shorten</button
                ><button type=button id=gist title="Share a link to your code via Gist">Gist</button
            ></div
            ><wbr><div class=radios
                ><div title="Select a build mode:
 · Debug: no optimizations; debug assertions on
 · Release: all optimizations; debug assertions off">Mode</div
                ><div
                    ><input type=radio name=optimize id=optimize-0 value=0 checked><label for=optimize-0 title="No optimizations, debug assertions on. This is the default for rustc and cargo invocations and is good for development.">Debug</label
                    ><input type=radio name=optimize id=optimize-3 value=3><label for=optimize-3 title="All optimizations, debug assertions off. Equivalent to `rustc -C opt-level 3` or `cargo --release`.">Release</label
                ></div
            ></div
            ><wbr><div class=radios
                ><div title="Select which version of rustc to use:
 · Stable: use this normally; stable features only.
 · Beta: the next version; stable features only.
 · Nightly: cutting edge; unstable features allowed.">Channel</div
                ><div
                    ><input type=radio name=version id=version-stable value=stable checked><label for=version-stable title="Use the stable channel">Stable</label
                    ><input type=radio name=version id=version-beta value=beta><label for=version-beta title="Use the beta channel">Beta</label
                    ><input type=radio name=version id=version-nightly value=nightly><label for=version-nightly title="Use the nightly channel">Nightly</label
                ></div
            ></div
            ><wbr><div class=right-c-e
                ><button type=button id=configure-editor><span>Configure editor</span></button
                ><div class=dropdown>
                    <p><label for=keyboard>Keyboard bindings:</label>
                    <select name=keyboard id=keyboard>
                        <option>Ace</option>
                        <option>Emacs</option>
                        <option>Vim</option>
                    </select>
                    <p><label for=themes>Theme:</label>
                    <select name=themes id=themes></select>
                    <p><label for=asm-flavor>Asm Flavor:</label>
                    <select name=asm-flavor id=asm-flavor>
                        <option>att</option>
                        <option>intel</option>
                    </select>
                    <p><label for=backtrace title="Whether to set the shell environment var RUST_BACKTRACE and thus show the backtrace in the output! eg. to quickly test this run: fn main() { panic!() }">Backtrace:</label>
                    <select name=backtrace id=backtrace>
                        <option title="RUST_BACKTRACE is not set" value="0">off</option>
                        <option title="export RUST_BACKTRACE=1" value="1">on</option>
                        <option title="'auto' means turn this on only when Mode: Debug but not when Mode: Release" value="2">auto</option>
                    </select>
                </div
            ></div>
        </form>
        <main>
            <div id=editor>fn main() {
    println!("Hello, world!");
}</div>
            <div id=result data-empty><div></div><button type=button id=clear-result title="Close this pane">×</button></div>
        </main>
    </body>
</html>
